package StudyCode.summary.zipfile;

import java.io.FileOutputStream;
import java.io.IOException;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class AppendOutputToFileUsingFileOutputStream {
	public static void main(String[] args) {
		String strFilePath = "E:/Copy/2.txt";

		try {
			FileOutputStream fos = new FileOutputStream(strFilePath, true);
			String strContent = "www.tah1986.com";
			fos.write(strContent.getBytes());
			fos.close();
			System.out.println("使用 FileOutputStream 将输出追加到文件成功");
		} catch (IOException ioe) {
			ioe.printStackTrace();
		}

	}
}
